import request from '../utils/request';
//模板模拟
export const fetchData = query => {
    return request({
        url: './table.json',
        method: 'get',
        params: query
    });
};
//查询附近商家
export const washStoreList = query => {
    return request({
        url: '/vehicle/services/business',
        method: 'get',
        params: query
    });
};
//查询附近商家
export const storeList = query => {
    return request({
        url: '/vehicle/services/allBusiness',
        method: 'get',
        params: query
    });
};
//评论列表
export const washComment = query => {
    return request({
        url: '/vehicle/order/comment',
        method: 'get',
        params: query
    });
};
//查询服务分类
export const queryServices = query => {
    return request({
        url: '/vehicle/services/all',
        method: 'get',
        params: query
    });
};
//单条服务分类
// export const queryOneService = query => {
//     return request({
//         url: '/vehicle/categories/categoryByID',
//         method: 'get',
//         params: query
//     });
// };
//优惠劵
export const businessDiscounts = query => {
    return request({
        url: '/vehicle/discounts/queryUserDiscounts',
        method: 'get',
        params: query
    });
};
